<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

<script src="../page/common/js/md5.js"></script>
<script src="../page/common/js/common.js"></script>
<script src="../page/common/js/zepto.min.js"></script>

<script type="text/javascript">
	var ctx = "${ctx}";
	var pageUrl = "${pageUrl}";
	var mServerUrl = "${mServerUrl}";
	
	/**
	 * 判断变量是否空值undefined, null, '', false, 0, [], {} 均返回true，否则返回false
	 * @param v
	 * @returns {Boolean}
	 */
	function empty(v){
		switch (typeof v){
			case 'undefined' : return true;
			case 'string' : if(v.length == 0) return true; break;
			case 'boolean' : if(!v) return true; break;
			case 'number' : if(0 === v) return true; break;
			case 'object' :
				if(null === v) return true;
				if(undefined !== v.length && v.length==0) return true;
				for(var k in v){return false;} return true;
				break;
		}
		return false;
	}
</script>


